package com.hanlink.dsp.model;

public enum FilterType {
    LINK_RIL(0), Bessel(1), BUTTER_WORTH(2);

    FilterType(int code) {
        this.code = code;
    }

    private int code;

    public static FilterType parseType(int code) {
        switch (code) {
            case 0:
                return FilterType.LINK_RIL;
            case 1:
                return FilterType.Bessel;
            case 2:
                return FilterType.BUTTER_WORTH;
        }

        return FilterType.LINK_RIL;
    }

    public int getCode() {
        return code;
    }
}